package com.njym.java.security.admin.mapper;

import com.njym.java.security.admin.entity.CludCode;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author lijie
 * @email 717057076@qq.com
 * @date 2019-11-15 10:20:39
 */
public interface CludCodeMapper extends Mapper<CludCode> {
    /**
     * 批量生成开通码
     * @param cludCode
     * @return
     */
    int insertUUID(CludCode cludCode);

    /**
     * 查询
     * @param code
     * @param clubId
     * @param useFlag
     * @param useId
     * @return
     */
    List<CludCode> querySelective(@Param("code") String code, @Param("clubId") Integer clubId,
        @Param("useFlag") String useFlag, @Param("useId") Integer useId);

    int countSelective(@Param("code") String code, @Param("clubId") Integer clubId,
        @Param("useFlag") String useFlag, @Param("useId") Integer useId);
}
